package switcher;

import common.TVConsts;

public class TimeSwitcher extends AbsSwitcher {
	String time = "";

	public TimeSwitcher() {
		super(TVConsts.SERVER_NAME, TVConsts.CH2_PORT, 
				TVConsts.MC_CH2_ADDRESS,
				TVConsts.MC_PORT);
	}

	public String getTimeString() {
		return time;
	}

	@Override
	public void msgInterrupt(byte[] data) {
		time = new String(data);
	}
}
